package com.yunfei.core.utils.enmu;

/**
 * 自定义请求状态码
 * @author ScienJus
 * @date 2015/7/15.
 */
public enum ResultStatus {
    SUCCESS(0, "成功"),
    SUCCESS01(01, "成功，没有上传附件"),
    USERNAME_OR_PASSWORD_ERROR(1000, "账号或密码错误"),
    MOBILE_OR_PASSWORD_ERROR(1001, "手机号或密码错误"),
    USER_NOT_FOUND(1002, "用户不存在"),
    USER_NOT_LOGIN(1003, "用户未登录"),
    MOBEILE_ERROR(1004, "手机号码格式错误"),
    MOBILE_NOTNULL_ERROR(10041, "手机号码不能为空"),
    TOKEN_ERROR(1005, "登录失效，请重新登录"),
    TOKEN_NOTNULL(10051, "token不能为空"),
    TOKEN_WUXIAO(10052, "token无效"),
    NOT_FOUND(404, "NOT FOUND"),
    PARAM_IS_NOT_NULL(1006, "PARAM IS NOT NULL"),
    PASSWORD_REG(1007, "请设置6-16位数字或字母组成的密码"),
    CODE_ERROR(1008, "验证码错误"),
    CODE_NOTNULL_ERROR(10081, "验证码不能为空"),
    PAGE_NOW_REG_ERROR(10082, "pageNow无效"),
    PAGE_SIZE_REG_ERROR(10083, "pageSize无效"),
    MOBEILE_SEND_CODE_ERROR(1009, "您的操作过于频繁，请明天再试"),
    MOBEILE_TEST_SEND_CODE_ERROR(1010, "该手机号码为测试手机号码,不用发送验证码"),
    UPLOAD_IMAGE_TYPE_ERROR(1022, "该文件类型不支持，请上传jpg、png、tmp格式的图片"),
    UPLOAD_IMAGE_MAX_SIZE_ERROR(1023, "您上传的图片过大，请上传3M以下的图片"),
    NO_USER_ERROR(1025, "该手机号码未注册"),
    EXSIT_USER_ERROR(1026, "该手机号已经注册"),
    UPDATE_PASSWORD_SUCCCESS(1027, "密码更新成功"),
    UPLOAD_IMAGE_ERROR(1028, "请上传图片"),
    DATE_FORMAT_ERROR(1033, "日期格式错误"),
    ERROR(1035, "服务器错误"),
    IMAGE_CODE_NOT_NULL(1041, "请填写图形验证码"),
    AUTH_ERROR(1042, "您的操作过于频繁,请稍后再试"),
    ILLEGAL_OPTION_ERROR(1043, "该ip地址今天发送短信次数过多,请明日再试"),
    CODE_SEND_SUCCESS(1045, "验证码发送成功"),
    CODE_SUCCESS(1046, "验证码正确"),
    OTHER_PHONE_LOGIN_ERROR(1058, "登录失效,您的账号已在其他设备上登录"),
    NO_MORE(1059, "没有更多数据了"),
    NO_DATA(10591, "暂无数据"),
    REGISTER_STEP_ERROR(1060, ""),
    AUTH_ERROR_24(1065, "您的操作过于频繁,请24小时后再试"),
    AUTH_ERROR_1(1066, "您的操作过于频繁,请1分钟后再试"),
    NO_AUTH_ERROR_1(1067, "无权访问"),
    ENTERPRISE_NAME_ISNOTNULL(1068, "企业名称不能为空"),
    ENTERPRISE_LEGALPERSON(1069, "法定代表人不能为空"),
    ENTERPRISE_NAME_NATURE(1070, "企业性质不能为空"),
    ENTERPRISE_INDUSTRY(1071, "所属行业不能为空"),
    ENTERPRISE_CARDAFTER(1072, "身份证正面不能为空"),
    ENTERPRISE_CARDBEFORE(1073, "身份证反面不能为空"),
    ENTERPRISE_ORGANIZATIONCODE(1074, "组织机构代码不能为空"),
    ENTERPRISE_ORGANIZATIONCODECERT(1075, "组织机构代码证不能为空"),
    ENTERPRISE_BUSSINESSCODE(1076, "工商执照注册码不能为空"),
    ENTERPRISE_BUSSINESSCD(1077, "工商营业执照不能为空"),
    HAVE_NO_THISDEAL(2000,"该笔流程不存在，请查明原因"),
    CATALOGY001(2005,"该产品为固定收益类产品，不允许操作！"),
    toDaySale(2025,"当天买入的产品，当日不能卖出"),
    isHoliday(2015,"今天为法定节假日噢，请在工作日进行该操作"),
    gtRealShare(2035,"要卖出份额大于已有份额,请刷新页面重试"),
    IMG_CODE_ERROR(2036,"图形验证码错误"),
    MOBILE_ISNOTNULL(2037,"手机号码不能为空"),
    MOBILE_ERROR(2038,"手机号码格式错误"),
    YQMCODE_NOTFOUNT(2039,"邀请码不存在"),
    gt_onebillion(2040,"所投总金额大于一亿元，请重新选择"),
    UPLOAD_ERROR(2041,"上传文件失败"),
    HAVEBANK(3000,"有银行卡数据"),
    ALLBANK(3001,"无银行卡数据，展示所有可选择银行"),
    ERROR01(3003,"存储过程返回结果失败"),
    CS_ERROR01(3005,"存储过程返回null"),
    UPLOAD_ERROR01(2045,"数据库操作失败");


    /**
     * 返回码
     */
    private int code;

    /**
     * 返回结果描述
     */
    private String message;

    ResultStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
